package com.hmall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties("hm.cart")
public class CartProperties {

    //读取自配置文件中的hm.cart.maxAmount的配置项值
    private Integer maxAmount;
}
